<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增报修信息')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-repair-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">上报人：</label>
                <div class="col-sm-8">
                    <input name="repairname" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">故障事项：</label>
                <div class="col-sm-8">
                    <input name="repairmatter" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">故障地点：</label>
                <div class="col-sm-8">
                    <input name="repairplace" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">报障时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="repairdata" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">故障描述：</label>
                <div class="col-sm-8">
                    <input name="repairdescribe" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">故障程度：</label>
                <div class="col-sm-8">
                    <input name="repairdegree" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
             <p class="col-sm-3 control-label">当前状态：</p>

                <div class="col-sm-8">
                    <div class="radio-box">
                        <!--<input type="radio" name="status" value="" required>-->
                        <select class="col-sm-3 control-label" name="status" required style="width: 300px">
                            <option >请选择</option>
                            <option value ="0">未处理</option>
                            <option value ="1">进行中</option>
                            <option value="2">已处理</option>
                        </select>
                        <!--<label th:for="status" th:text="未知"></label>-->
                    </div>
                    <!--<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>-->
                </div>
            </div>
            <!--<div class="form-group">
                <label class="col-sm-3 control-label">预留1：</label>
                <div class="col-sm-8">
                    <input name="arepair" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">预留2：</label>
                <div class="col-sm-8">
                    <input name="brepair" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">预留3：</label>
                <div class="col-sm-8">
                    <input name="crepair" class="form-control" type="text">
                </div>
            </div>-->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "system/repair"
        $("#form-repair-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-repair-add').serialize());
            }
        }

        $("input[name='repairdata']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>